package com.lam.framework.async.model;

import com.lam.framework.async.AsyncManager;

public abstract class AbstractRunTask<T> {

	protected String key;
	protected T actualTask;

	public AbstractRunTask(String key, T task) {
		this.key = key;
		this.actualTask = task;
	}

	protected void done() {
		AsyncManager.done(this);
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}
	
	public T getTask() {
		return actualTask;
	}

	public void setRunnable(T task) {
		this.actualTask = task;
	}
}
